import 'package:flutter/material.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:ichinesereader/pages/register/common/purchaseRecordsICRDataGrid.dart';
import 'package:ichinesereader/utils/log.dart';

class RegisterPurchase extends StatelessWidget {
  static const String routeName = '/student/evaluation/records';
  final box = Hive.box('appconfig');
  @override
  Widget build(BuildContext context) {
    Log.debug('build payment records');

    return SingleChildScrollView(
      child: Container(
        color: Theme.of(context).colorScheme.onInverseSurface,
        child: Padding(
          padding: const EdgeInsets.all(12.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              SizedBox(height: 20),
              PurchaseRecordsICRDataGrid(),
              SizedBox(height: 20),
            ],
          ),
        ),
      ),
    );
  }
}
